<!DOCTYPE html>
<html>

<head lang='zh'>
	<meta charset='utf-8'>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="renderer" content="webkit" />
	<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=0" />
	<title>Luckysheet</title>

	<link rel='stylesheet' href='./plugins/css/pluginsCss.css' />
	<link rel='stylesheet' href='./plugins/plugins.css' />
	<link rel='stylesheet' href='./css/luckysheet.css' />
	<link rel='stylesheet' href='./assets/iconfont/iconfont.css' />
	<script src="./plugins/js/plugin.js"></script>

	<!-- rollup luckysheet.js -->
	<script src="./luckysheet.umd.js"></script>
</head>

<body>
	<div id="luckysheet" style="margin:0px;padding:0px;position:absolute;width:100%;height:100%;left: 0px;top: 0px;"></div>
	<script type="module">
		import sheetFormula from './demoData/sheetFormula.js'
		import sheetCell from './demoData/sheetCell.js'
		import sheetConditionFormat from './demoData/sheetConditionFormat.js'
		import sheetTable from './demoData/sheetTable.js'
		import sheetComment from './demoData/sheetComment.js'
		import sheetPivotTableData from './demoData/sheetPivotTableData.js'
		import sheetPivotTable from './demoData/sheetPivotTable.js'
		import sheetSparkline from './demoData/sheetSparkline.js'
		import sheetChart from './demoData/sheetChart.js'
		import sheetPicture from './demoData/sheetPicture.js'
		import sheetDataVerification from './demoData/sheetDataVerification.js'
		$(function () {
			luckysheet.create({
				container: 'luckysheet',
				lang: 'en',
				allowEdit:true,
				forceCalculation:false,
				plugins: ['chart'],
				fontList:[
					{
					"fontName":"HanaleiFill",
					"url":"./assets/iconfont/HanaleiFill-Regular.ttf"
					},
					{
					"fontName":"Anton",
					"url":"./assets/iconfont/Anton-Regular.ttf"
					},
					{
					"fontName":"Pacifico",
					"url":"./assets/iconfont/Pacifico-Regular.ttf"
					}
				],
				data:  
				[sheetCell,sheetFormula,sheetConditionFormat,sheetSparkline,sheetTable,sheetComment,sheetPivotTableData,sheetPivotTable,sheetChart,sheetPicture,sheetDataVerification]
				// [{"name":"Sheet1","config":{"columnlen":{"0":241},"rowlen":{"0":81}},"index":"1","status":"1","order":"0","luckysheet_select_save":[{"row":[0,0],"column":[4,4],"sheetIndex":1}],"zoomRatio":1,"showGridLines":"1","defaultColWidth":72,"defaultRowHeight":18,"celldata":[
				// 	{"r":0,"c":0,
				// 		"v":{
				// 			"ct":{
				// 				"fa":"General",
				// 				"t":"inlineStr",
				// 				"s":[
				// 					{
				// 						"ff":"Arial", //font family
				// 						"fc":"#fff000",//font color
				// 						"fs":12,//font size
				// 						"cl":0,//strike
				// 						"un":0,//underline
				// 						"bl":0,//blod
				// 						"it":0,//italic
				// 						v:"我在马路\r\n边捡到\r\n\r\n一分钱"
				// 					},
				// 					{
				// 						"ff":"Arial", //font family
				// 						"fc":"#ff0000",//font color
				// 						"fs":14,//font size
				// 						"cl":"1",//strike
				// 						"un":"1",//underline
				// 						"bl":"1",//blod
				// 						"it":"0",//italic
				// 						v:"交给警\r\n察叔叔\r\n"
				// 					},
				// 				]
				// 			},
				// 			"fs":11,
				// 			"ff":"等线",
				// 			"vt":0,
				// 			"tb":2,
				// 			"v":"",
				// 			"qp":1,
				// 		}
				// 	},
				// 	{"r":17,"c":2,"v":{"v":"Luckysheet","ct":{"fa":"General","t":"g"},"bg":null,"bl":0,"it":0,"ff":0,"fs":"11","fc":"rgb(51, 51, 51)","ht":1,"vt":1,"m":"Luckysheet"}}
				// ],"calcChain":[]}]
			})

		})
	</script>
</body>

</html>